<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$item=$this->plugin_setting('xieyi');
	$return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'报名协议',
		'edit'=>array(
			array('type'=>'switch','title'=>'是否关闭授权书','name'=>'noxieyi','isradio'=>1),
			array('type'=>'richtext','title'=>'授权书','name'=>'content'),
			array('type'=>'switch','title'=>'是否关闭授权书','name'=>'noxieyi2','isradio'=>1),
			array('type'=>'richtext','title'=>'个人信息保护申明','name'=>'content2'),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('xieyi',$postdata);
	exi('设置成功');
}